import request from '@/utils/require'
// 登录
export function login(data) {
    return request({
        url: '/v1/login/',
        method: 'POST',
        data
    });
}
// 注册
export function register(data) {
    return request({
        url: '/v1/register/',
        method: 'POST',
        data
    });
}
// 验证码
export function sms(data) {
    return request({
        url: '/v1/sms/',
        method: 'get',
        params: {phone:data}
    });
}
